import { request } from '@umijs/max';

export async function fakeSubmitForm(params: any) {
  return request('http://47.108.248.39:8002/restaurant/basic_info/upsert', {
    method: 'POST',
    data: params,
  });
}


export async function getUserFn() {
  return request(`http://47.108.248.39:8002/restaurant/basic_info/list`, {
    method: 'GET',
  });
}

export async function getActiveListFn(merchant_id: any) {
  return request(`http://47.108.248.39:8002/restaurant/event/${merchant_id}`, {
    method: 'GET',
  });
}

export async function updateActiveListFn(params: any) {
  return request(`http://47.108.248.39:8002/restaurant/event/save`, {
    method: 'POST',
    data: params
  });
}